package com.qlu.syq.service.admin.impl;

import com.qlu.syq.dao.admin.PlaceDao;
import com.qlu.syq.entity.admin.Place;
import com.qlu.syq.service.admin.PlaceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @ClassName: PlaceServiceImpl
 * @Description: TODO
 * @Author: ZPF
 * @Date: 2021/5/20 11:32
 **/
@Service
public class PlaceServiceImpl implements PlaceService {

    @Autowired
    PlaceDao placeDao;

    @Override
    public int add(Place place) {
        return placeDao.add(place);
    }

    @Override
    public int edit(Place place) {
        return placeDao.edit(place);
    }

    @Override
    public int delete(Integer id) {
        return placeDao.delete(id);
    }

    @Override
    public List<Place> findList(Map<String, Object> queryMap) {
        return placeDao.findList(queryMap);
    }

    @Override
    public Integer getTotal(Map<String, Object> queryMap) {
        return placeDao.getTotal(queryMap);
    }

    @Override
    public Place find(Integer id) {
        return placeDao.find(id);
    }

    @Override
    public Place findByName(String name) {
        return placeDao.findByName(name);
    }

    @Override
    public List<Place> findAll() {
        return placeDao.findAll();
    }
}
